home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / cvdmbf / cvdmbf.txt < prev    next >
Text File  |  1993-06-25  |  4KB  |  86 lines

  1. Microsoft Binary Format and Turbo Pascal Real Conversions for Visual Basic
  2.  
  3. Introduction:
  4.  
  5. One of the things that Microsoft left out of Visual Basic for Windows were
  6. the MKDMBF$, MKSMBF$, CVDMBF, and CVSMBF functions.  These functions
  7. converted the old Microsoft Binary Format numbers used by BASICA or older
  8. versions of QuickBASIC (3.0 and earlier) to the new IEEE format.  Of course,
  9. there never was an internal function in QuickBASIC to convert Turbo Pascal
  10. 6-byte Reals into numbers that QB could understand.  Two functions included
  11. in this package, MDKTPR$ and CVDTPR, allow you to perform this conversion.
  12. They were included in this package because these routines were included in
  13. the original C routines.
  14.  
  15. To assist Visual Basic programmers who need a way to access or convert the
  16. data created by these older programs these routines are presented
  17. for your use without any charge or registration required.
  18.  
  19. This is the second version of these routines to be released.  The first
  20. version was put together rather quickly to meet my own and others deadlines.  
  21. It was quick and dirty and was in need of some refinements and bug fixes.
  22. The most important change to the conversion routines was changing them from
  23. Subs to Functions for this version and getting rid of several global
  24. variables that the routines depended upon. The other major change was
  25. putting everything into a help file.  All of the conversion routines are
  26. in CVDMBF.HLP, as well as in the CVDMBF.BAS file.  You can either add
  27. CVDMBF.BAS to your project to have access to all of the routines.
  28. If you don't want to load all of the routines into your project you can
  29. use the 'Copy Topic' button in the help file to just get the routines
  30. you want to include.
  31.  
  32. In case you are looking for routines to do the other MK?? and CV??
  33. functions, they are included in this package as well, since they are
  34. required for the proper operation of the MBF routines.  These routines are
  35. from a Microsoft Knowledge base article that described using the hmemcpy
  36. API call to perform this operation.
  37.  
  38. Loading the Help File:
  39.  
  40. You can view the help file by selecting FILE|RUN from Program Manager and
  41. typing in WINHELP CVDMBF.HLP or by double clicking on it in File Manager.
  42.  
  43. Thanks and Acknowledgments:
  44.  
  45. First I would like to thank David W. Terry for putting the original C
  46. routines on CompuServe for all to use.   These original routines are in 
  47. REALCN.ZIP in the IBMPRO forum C file library.
  48.  
  49. I would also like to thank Bryan Donaldson, Fred Bunn}, and Mark Howard,
  50. all of whom contributed to the creation and debugging of these routines.  
  51. Also, a thank you to Kenneth Jamieson who suggested several of the
  52. refinements found in this version.
  53.  
  54. Disclaimer:
  55.  
  56. No warranties or guarantees are made for these routines and you are solely
  57. responsible for their use or misuse.  The routines are considered Public
  58. Domain. You may use or modify them as needed.
  59.  
  60. All the company names and products mentioned in this document 
  61. are trademarks of the respective companies.
  62.  
  63. Since I don't have a copy of Turbo Pascal, I was unable to test the TP
  64. related routines a throughly as I would have liked.  If you encounter
  65. problems with them, let me know so that I can make corrections to it.
  66.  
  67. Comments & Suggestions:
  68.  
  69. I would like to hear from anyone who gets any use out of these routines.  
  70. I am also available for programming projects and consulting in Visual Basic.
  71.  
  72. You may contact me at:
  73.  
  74. J. Frank Carr
  75. 1532 Amber Trail
  76. Duluth, GA 30136  USA
  77.  
  78. Voice Mail: (404) 880-5762 
  79.  
  80. CIS:  75120, 2420
  81.  
  82. America OnLine:  JFCarr
  83.  
  84.  
  85.  
  86.